/*
function killErrors() {
return true;
}
*/
function MakeSameHeightSplit(str){
	try{
		MakeSameHeight(str.split(','));
	}catch(e){}
//	return true;
}
function MakeSameHeight(divarr){
	var i,ai,heightstr,tempi=0,bigdiv=0;
	try{
		for (i=0;i<divarr.length;i++ )
		{
			ai = $(divarr[i]).scrollHeight;
			if(ai>bigdiv){
				bigdiv = ai;
			}
		}
		for (i=0;i<divarr.length;i++ )
		{
			$(divarr[i]).style.height=bigdiv+"px";

		}
	}catch(e){}

/*
	var l=$("boot_left").scrollHeight
	var m=$("boot_main").scrollHeight
	var r=$("boot_right").scrollHeight
	var layoutHeight=Math.max(l,m,r)
	$("boot_left").style.height=layoutHeight+"px"
	$("boot_main").style.height=layoutHeight+"px"
	$("boot_right").style.height=layoutHeight+"px"
*/
}
//window.onerror = killErrors ;
function CheckReplyForm(mode) {	
	if(mode==0){
		if(document.thisForm.user_name.value=='') {
			alert('请输入用户名');
			document.thisForm.user_name.focus();
			return false;
		}
		if(document.thisForm.user_password.value=='') {
				alert('请输入密码');
				document.thisForm.user_password.focus();
				return false;
		}
	}

	if(mode==2){
		if(document.thisForm.user_name.value=='') {
			alert('请输入用户名');
			document.thisForm.user_name.focus();
			return false;
		}
	}

	if(document.thisForm.user_img.value=='') {
			alert('输入验证码');
			document.thisForm.user_img.focus();
			return false;
	}

	if(document.thisForm.content.value=='') {
			alert('请输入内容');
			document.thisForm.content.focus();
			return false;
	}

	
	return true;
}